<style>
  :host {
    display: block;
    height: 100%;
    width: 100%;
  }

  ntp-module-header {
    margin-bottom: 8px;
  }

  #files {
    display: flex;
    flex-direction: column;
    margin-bottom: 7px;
  }

  .file {
    box-sizing: border-box;
    color: var(--cr-primary-text-color);
    display: flex;
    flex-shrink: 0;
    height: 56px;
    outline: none;
    padding: 8px 18px;
    text-decoration: none;
  }

  .file:hover {
    background-color: var(--ntp-hover-background-color);
  }

  .file:active,
  :host-context(.focus-outline-visible) .file:focus {
    background-color: var(--ntp-active-background-color);
  }

  .file-icon {
    height: 19px;
    margin-inline-end: 19px;
    margin-top: 3px;
    object-fit: contain;
    width: 19px;
  }

  .file-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
  }

  .file-title,
  .file-description {
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .file-title {
    font-size: 13px;
  }

  .file-description {
    color: var(--cr-secondary-text-color);
    font-size: 12px;
  }

  ntp-info-dialog a {
    color: var(--cr-link-color);
    cursor: pointer;
    text-decoration: none;
  }

  ntp-info-dialog a:focus {
    border-radius: 2px;
    box-shadow: var(--ntp-focus-shadow);
    outline: none;
  }
</style>
<ntp-module-header
    dismiss-text="[[i18nRecursive('',
                                  'modulesDismissButtonText',
                                  'modulesDriveFilesLower')]]"
    disable-text="[[i18nRecursive('',
                                  'modulesDisableButtonText',
                                  'modulesDriveSentence2')]]"
    show-info-button on-info-button-click="onInfoButtonClick_"
    show-dismiss-button on-dismiss-button-click="onDismissButtonClick_"
    on-disable-button-click="onDisableButtonClick_">
  [[i18n('modulesDriveTitle')]]
</ntp-module-header>
<div id="files">
  <template id="fileRepeat" is="dom-repeat" items="[[files]]">
    <a class="file" href="[[item.itemUrl.url]]" on-click="onFileClick_"
        on-auxclick="onFileClick_">
      <img
          is="cr-auto-img"
          class="file-icon"
          draggable="false"
          auto-src="[[getImageSrc_(item)]]">
      </img>
      <div class="file-info">
        <div class="file-title">[[item.title]]</div>
        <div class="file-description">[[item.justificationText]]</div>
      </div>
    </a>
  </template>
</div>
<cr-lazy-render id="infoDialogRender">
  <template>
    <ntp-info-dialog inner-h-t-m-l="[[i18nAdvanced('modulesDriveInfo')]]">
    </ntp-info-dialog>
  </template>
</cr-lazy-render>
